<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel app\models\CustomerSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = Yii::t('app', 'Customers');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="customer-index">

    <h1><?= Html::encode($this->title) ?></h1>
    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

    <p>
        <?= Html::a(Yii::t('app', 'Create {modelClass}', [
    'modelClass' => 'Customer',
]), ['create'], ['class' => 'btn btn-success']) ?>
    </p>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'cust_id',
            'cust_name',
            'address',
            'person_in_charge',
            'email:email',
            // 'tel',
            // 'ns_person',
            // 'close_fee',
            // 'close_month',
            // 'cust_type',
            // 'is_operating:boolean',
            // 'close_compensation_month',
            // 'payroll_compensation',
            // 'payroll_month',
            // 'payroll_compensation_month',
            // 'is_tax_form:boolean',
            // 'is_bookkeeping:boolean',
            // 'is_labor_form:boolean',
            // 'is_year_end_adjustment:boolean',
            // 'is_legal_adjustment:boolean',
            // 'declaration_form',
            // 'notification_form',
            // 'remark',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>

</div>
